package com.bishe.demo.modules.tourism.entity;

import com.bishe.demo.modules.common.entity.SearchBean;

/**
 * @Description RouteSearchBean
 * @Author Lubb
 * @Date 2021/3/31 13:34
 */
public class RouteSearchBean extends SearchBean {
    private String startPoint;
    private String terminalPoint;
    private String startDate;
    private String terminalDate;
    private String type;
    private Integer maxPrice;
    private Integer minPrice;
    private String level;
    private Integer maxPeople;

    public final static int DEFAULT_MAX_PRICE = 999999;
    public final static int DEFAULT_MIN_PRICE = 0;

    @Override
    public void initSearchBean() {
        super.initSearchBean();
        this.setMaxPrice(this.maxPrice == null || this.maxPrice == 0 ? DEFAULT_MAX_PRICE : this.maxPrice);
        this.setMinPrice(this.minPrice == null || this.maxPrice == 0 ? DEFAULT_MIN_PRICE : this.minPrice);
    }

    public String getStartPoint() {
        return startPoint;
    }

    public void setStartPoint(String startPoint) {
        this.startPoint = startPoint;
    }

    public String getTerminalPoint() {
        return terminalPoint;
    }

    public void setTerminalPoint(String terminalPoint) {
        this.terminalPoint = terminalPoint;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getTerminalDate() {
        return terminalDate;
    }

    public void setTerminalDate(String terminalDate) {
        this.terminalDate = terminalDate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getMaxPeople() {
        return maxPeople;
    }

    public void setMaxPeople(Integer maxPeople) {
        this.maxPeople = maxPeople;
    }
}
